This forum is closed to new posts and
responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:
RE: How to prevent WQO be triggered by event other than opening the form? ~Vanessa Prejipyterader 10.Mar.07 04:36 PM a Web browser Domino Designer All ReleasesWindows XP
This is some code that I use in my close buttons on the web instead of @Command([FileCloseWindow]). As long as you are not passing in any parameters then EditDocument, OpenDocument or OpenForm will always be the last element of the array.
var url = window.location.href.split("?");
//check whether user has put document into edit mode from read mode
if (url[url.length - 1].toUpperCase() == "EDITDOCUMENT") {
window.history.go(-2);
} else {
window.history.go(-1);
}